package com.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import com.config.Interceptor;

/**拦截器注册器
 * */
@Configuration
public class IntercepterRegister implements WebMvcConfigurer{

	@Override
	public void addInterceptors(InterceptorRegistry registry) {
		registry.addInterceptor(new Interceptor()).addPathPatterns("/**").excludePathPatterns("/login","/sureLogin","/loginOut","/error");
		//registry.addInterceptor(new STSInterceptor());
	}
	
}
